﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Pages/MasterPage.master" AutoEventWireup="true" CodeFile="AdminList.aspx.cs" Inherits="Admin_Pages_AdminList" Title="Untitled Page" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v8.2, Version=8.2.4.0, Culture=neutral, PublicKeyToken=49d90c14d24271b5"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<title>Management System</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<div class="wraptitle">
    <h1>Admin List</h1>
</div>
<div class="wrapcontent">
    <dxwgv:ASPxGridView ID="ASPxGridView1" runat="server" 
        AutoGenerateColumns="False">
    <Columns>
            <dxwgv:GridViewDataTextColumn Caption="Username" FieldName="Username"/>
            <dxwgv:GridViewDataColumn Caption="Level">
                <DataItemTemplate>
                  <img alt="admin level" src='<%# CheckLevelAdmin(Eval("Level").ToString()) %>' />
                    
                </DataItemTemplate>
            </dxwgv:GridViewDataColumn>
            <dxwgv:GridViewDataTextColumn Caption="Full Name" FieldName="FullName"/>
            <dxwgv:GridViewDataTextColumn Caption="Mobile" FieldName="Mobile"/>
            <dxwgv:GridViewDataTextColumn Caption="Address" FieldName="Address"/>
            <dxwgv:GridViewDataTextColumn Caption="Email" FieldName="Email"/>
            <dxwgv:GridViewDataTextColumn Caption="Birthday" FieldName="Birhday">
                <PropertiesTextEdit DisplayFormatString="{0:dd/MM/yyyy}">
                </PropertiesTextEdit>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataColumn Caption="Function">
                <DataItemTemplate>
                    <%# CheckEditAdmin(Eval("Level").ToString(),Eval("Username").ToString()) %>     
                </DataItemTemplate>
            </dxwgv:GridViewDataColumn>
        </Columns>
    </dxwgv:ASPxGridView>
</div>

</asp:Content>

